package com.erp.generic.service.impl;

import java.util.List;
import java.util.Map;

import org.hibernate.Query;
import org.hibernate.Session;

import com.erp.generic.utils.HibernateUtil;


public abstract class BaseAuthenticationProcessor {
	
	public void authenticateUser(String loginId, String password, String sessionId,Map<String, String> sessionDetailsMap)
	throws Exception {/*
		
		String userType = null;
		Session session = HibernateUtil.openSession();
		String hqlQuery = "select userType from  "+
		UserBO.class.getName()+
		" where userid = :loginId ";
		
		Query query = session.createQuery(hqlQuery);
		query.setParameter("loginId", loginId);
		//query.setParameter("password", password);
		@SuppressWarnings("unchecked")
		List<String> list = query.list();
		
		if(list.size()>0){
			userType = list.get(0);
		}
		System.out.println(userType);

	*/}
	public abstract boolean verifyPassword(String userId,String password, Map<String, String> sessionDetMap) throws Exception;
	

}
